.class public Les/ow;
.super Ljava/lang/Object;
.source "SelectNetDiskDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/ow$c;,
        Les/ow$d;
    }
.end annotation


# instance fields
.field private a:Lcom/estrongs/android/ui/dialog/q;

.field private b:Landroid/content/Context;

.field private c:Les/ow$d;

.field private d:Landroid/widget/ListView;

.field private e:Les/ow$c;

.field private f:I

.field private g:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;)V"
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, -0x1

    .line 2
    iput v0, p0, Les/ow;->f:I

    .line 3
    iput-object p1, p0, Les/ow;->b:Landroid/content/Context;

    .line 4
    iput-object p2, p0, Les/ow;->g:Ljava/util/List;

    .line 5
    invoke-direct {p0}, Les/ow;->c()V

    return-void
.end method

.method static synthetic a(Les/ow;I)I
    .locals 0

    .line 2
    iput p1, p0, Les/ow;->f:I

    return p1
.end method

.method static synthetic a(Les/ow;)Ljava/util/List;
    .locals 0

    .line 1
    iget-object p0, p0, Les/ow;->g:Ljava/util/List;

    return-object p0
.end method

.method static synthetic b(Les/ow;)I
    .locals 0

    .line 1
    iget p0, p0, Les/ow;->f:I

    return p0
.end method

.method static synthetic c(Les/ow;)Les/ow$d;
    .locals 0

    .line 1
    iget-object p0, p0, Les/ow;->c:Les/ow$d;

    return-object p0
.end method

.method private c()V
    .locals 3

    .line 2
    iget-object v0, p0, Les/ow;->b:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c00f1

    const/4 v2, 0x0

    .line 3
    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 4
    new-instance v1, Lcom/estrongs/android/ui/dialog/q$n;

    iget-object v2, p0, Les/ow;->b:Landroid/content/Context;

    invoke-direct {v1, v2}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    .line 5
    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/dialog/q$n;->a(Landroid/view/View;)Lcom/estrongs/android/ui/dialog/q$n;

    invoke-virtual {v1}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object v1

    iput-object v1, p0, Les/ow;->a:Lcom/estrongs/android/ui/dialog/q;

    const v1, 0x7f0906ea

    .line 6
    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ListView;

    iput-object v1, p0, Les/ow;->d:Landroid/widget/ListView;

    .line 7
    iget-object v1, p0, Les/ow;->g:Ljava/util/List;

    if-eqz v1, :cond_0

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_0

    .line 8
    invoke-direct {p0}, Les/ow;->e()V

    .line 9
    invoke-direct {p0}, Les/ow;->d()V

    .line 10
    iget-object v1, p0, Les/ow;->d:Landroid/widget/ListView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setVisibility(I)V

    goto :goto_0

    .line 11
    :cond_0
    iget-object v1, p0, Les/ow;->d:Landroid/widget/ListView;

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setVisibility(I)V

    :goto_0
    const v1, 0x7f090092

    .line 12
    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    new-instance v1, Les/ow$a;

    invoke-direct {v1, p0}, Les/ow$a;-><init>(Les/ow;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method private d()V
    .locals 3

    .line 1
    new-instance v0, Les/ow$c;

    iget-object v1, p0, Les/ow;->b:Landroid/content/Context;

    const/4 v2, 0x0

    invoke-direct {v0, p0, v1, v2}, Les/ow$c;-><init>(Les/ow;Landroid/content/Context;Les/ow$a;)V

    iput-object v0, p0, Les/ow;->e:Les/ow$c;

    .line 2
    iget-object v1, p0, Les/ow;->d:Landroid/widget/ListView;

    invoke-virtual {v1, v0}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 3
    iget-object v0, p0, Les/ow;->d:Landroid/widget/ListView;

    new-instance v1, Les/ow$b;

    invoke-direct {v1, p0}, Les/ow$b;-><init>(Les/ow;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 4
    iget-object v0, p0, Les/ow;->d:Landroid/widget/ListView;

    iget v1, p0, Les/ow;->f:I

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setSelection(I)V

    .line 5
    iget-object v0, p0, Les/ow;->g:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    .line 6
    iget-object v1, p0, Les/ow;->d:Landroid/widget/ListView;

    invoke-virtual {v1}, Landroid/widget/ListView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0700fc

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v1

    const/4 v2, 0x3

    if-le v0, v2, :cond_0

    const/high16 v0, 0x40600000    # 3.5f

    int-to-float v1, v1

    mul-float v1, v1, v0

    float-to-int v0, v1

    goto :goto_0

    :cond_0
    mul-int v0, v0, v1

    .line 7
    :goto_0
    iget-object v1, p0, Les/ow;->d:Landroid/widget/ListView;

    invoke-virtual {v1}, Landroid/widget/ListView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 8
    iput v0, v1, Landroid/view/ViewGroup$LayoutParams;->height:I

    :cond_1
    return-void
.end method

.method private e()V
    .locals 3

    .line 1
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->r()Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    .line 2
    :goto_0
    iget-object v2, p0, Les/ow;->g:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-ge v1, v2, :cond_1

    .line 3
    iget-object v2, p0, Les/ow;->g:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/fs/g;

    invoke-interface {v2}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 4
    iput v1, p0, Les/ow;->f:I

    goto :goto_1

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    :goto_1
    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 4
    iget-object v0, p0, Les/ow;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->dismiss()V

    return-void
.end method

.method public a(Les/ow$d;)V
    .locals 0

    .line 3
    iput-object p1, p0, Les/ow;->c:Les/ow$d;

    return-void
.end method

.method public b()V
    .locals 2

    .line 2
    iget-object v0, p0, Les/ow;->a:Lcom/estrongs/android/ui/dialog/q;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    .line 3
    iget-object v0, p0, Les/ow;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0, v1}, Landroid/app/Dialog;->setCancelable(Z)V

    .line 4
    iget-object v0, p0, Les/ow;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return-void
.end method
